package com.lyncs.ods.modules.setting.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公共配置表
 * </p>
 *
 * @author alex
 * @since 2022-04-24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("app_setting")
@ApiModel(value = "AppSetting对象", description = "公共配置表")
public class AppSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("配置键")
    @TableField("setting_key")
    private String settingKey;

    @ApiModelProperty("配置值")
    @TableField("setting_value")
    private String settingValue;

    @ApiModelProperty("状态:1.ENABLE;2.DISABLE")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
